<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登陆页面</title>
</head>
<body>
<h1>登录</h1>
    <form method="POST" action="{% url 'login' %}">

        <label for="username">Username:</label>
        <input type="text" id="username" name="username">
        <label for="password">Password:</label>
        <input type="password" id="password" name="password">
        <button type="submit">Login</button>
    </form>
    <p>
        没有账号?
        <a href="{% url 'register' %}">去注册</a>
    </p>

    <hr>
    <p>前往课程1001详情页：<a href="{% url 'course_app:course_detail' 1001 %}">去详情</a></p>
    <hr>
    <p>查询名叫张三的人：<a href="{% url 'user_search' %}?name=张三">去查人</a></p>

    <hr>
    {% spaceless %}
    <p>
       <a href="https://www.baidu.com" target="_blank">测试标签压缩，前往百度</a>
    </p>
    {% endspaceless %}
    <hr>
    <h5>html内容（转移后）</h5>
    {{ html_content }}
    <hr>
    <h5>html内容（嵌入展示）</h5>
    {% autoescape off %}
    {{ html_content }}
    {% endautoescape %}
</body>
</html>